//
//  HYTableViewCell.m
//  HaiYue
//
//  Created by skyline on 2018/5/25.
//  Copyright © 2018年 skyline. All rights reserved.
//

#import "HYTableViewCell.h"

@implementation HYTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self.selectedBackgroundView = [[HYView alloc] initWithColor:CELL_LINE_COLOR];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [UIView animateWithDuration:0.1 animations:^{
        self.selectedBackgroundView.transform = CGAffineTransformMakeScale(0.8, 0.8);
    }];
    [super touchesBegan:touches withEvent:event];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
